<template>
  <h3>rdp.vue</h3>
  <button @click="getUser">获取用户数据</button>
  <p>{{ data }}</p>
</template>

<script setup>
import {ref} from "vue"
import api from "../../api"
const data = ref(null)

function getUser(){
  api.getUsers().then(res => {
    data.value = res.data
  })
}

</script>